<!-- Add the class 'table' -->
<table class="table" cellspacing="0" width="100%">

    <thead>
        <tr>
            <th scope="col">Cliente Origem</th>
            <th scope="col">Email Destino</th>            
            <th scope="col">Mensagem</th>
            <th scope="col">Cliente Destino</th>            
            <th scope="col">Situação</th>
            <th scope="col" class="table-actions">Ações</th>
        </tr>
    </thead>
    
    <tbody>

    {foreach $convites as $convite}
        <tr>            
            <td>{$convite->getCliente()->getPessoa()->getNome()}</td>
            <td>{$convite->getEmail()}</td>
            <td>{$convite->getMensagem()}</td>            
            
            {if $convite->getConvidado() != null}
                <td>{$convite->getConvidado()->getPessoa()->getNome()}</td>
            {else}
                <td>&nbsp;</td>
            {/if}
                        
            <td>{$convite->getStatus()->getDescricao()}</td>

            <!-- The class table-actions is designed for action icons -->
            <td class="table-actions">                
                <a href="javascript:void(0);" onclick="abrirModalConfirmacao('ConviteAction.excluir!conviteID-{$convite->getConviteID()}');" title="Deletar" class="with-tip"><img alt="del" src="include/images/icons/fugue/cross-circle.png" width="16" height="16"/></a>
            </td>
        </tr>

        {/foreach}

    </tbody>

</table>

{include file="view/include/paginacao.tpl"}